package com.kaba.util;


import com.kaba.bean.ResponseResult;
import com.kaba.exception.CustomException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class CustomControllerAdvice {

    @ExceptionHandler(CustomException.class)
    public ResponseResult  xxx(CustomException exception){
        return ResponseResult.error(exception.getResultCode());
    }


}
